package com.github.ecbp.user.service.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.github.ecbp.common.data.mapper.BaseMapper;
import com.github.ecbp.user.service.entity.TAdmin;
import com.github.ecbp.user.service.vo.AdminPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//import com.baomidou.mybatisplus.plugins.pagination.Pagination;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author zj2626
 * @since 2020-03-18
 */
public interface AdminMapper extends BaseMapper<TAdmin> {

    /**
     * @param page
     * @param userWrapper
     * @return java.util.List<com.ecbp.service.user.vo.AdminPageVo>
     * @Description: 分页查询
     * @author zj2626
     * @date 2020/5/12
     */
    List<AdminPageVo> selectPageWithRole(IPage<AdminPageVo> page, @Param(Constants.WRAPPER) Wrapper<TAdmin> userWrapper);

}
